// 云函数入口文件
const cloud = require('wx-server-sdk')
const env = 'cloud1-5gn69vz6775c4b43'
cloud.init()
const db = cloud.database({env})
// 云函数入口函数
exports.main = async (event, context) => {
  let self = this
  console.log(self.event.userInput);
 return db.collection('note').where({
    noteTitle:db.RegExp({
      regexp: "数据",
      options: 'i',
    })
    }).get({
      success(res){

        // console.log(res);
        // console.log(event);
      }
    })
}